package JC.dyjd;
/*用于复习超类Object*/
public class chaolei {
    public static void main(String[] args) {

    }
}
class student{
    String name;
    int age;
    public student(){
        System.out.println("我是无参构造");
    }
    public student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("我是全参构造");
    }

    @Override
    public String toString() {
        return "student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}